all:
	g++ -Wall -O4 -c perceptron.cpp perceptron_test.cpp
	g++ -Wall -O4 -o perceptron_test perceptron.o perceptron_test.o -lm
	gcc -Wall -O4 -o perceptron_c perceptron_c.c -lm
clean:
	rm -rf *~ *.o perceptron_c perceptron_test error_c.txt error.txt
run:
	./perceptron_c 2> error_c.txt
	./perceptron_test 2> error.txt
